/*
 * Copyright (c) 2015, 张涛.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.yuexun.beilunpatient.config;

/**
 * 配置文件常量
 * <p>
 * Created by chenss on 17/6/7.
 */
public class AppConfig {
    /**
     * 全局CrashHandler抓取报错信息到手机本地文件中
     */
    public static final String SAVEFOLDER = "familyPatient";
    public static final String SAVEFILENAME = "familyPatient.log";

    //系统配置地址
    public static final String WEB_ROOT = "https://51wangzhen.com/blarea/";//115.238.173.49
//    public static final String WEB_ROOT = "http://106.75.213.54:8080/blarea/";
    //系统配置地址
    public static final String WEB_SYSTEM = WEB_ROOT + "api/v1.0/";
    //支付配置地址
    public static final String WEB_ROOT_PAY = "https://51wangzhen.com/blareaPay/services/pay/";

    //H5界面
    public static final String WEB_H5 = WEB_ROOT + "hospital/pages/html/";

    //获取应用最新版本
    public static final String CHECK_APP_LASTVERSION = "https://umc.51yizhen.com/oa/beilunhuanzhe/";
    //app分享下载页面
    public static final String WEB_APP_SHARE = "https://51wangzhen.com/jkbl.html";

    //文件目录
    public static final String FILE_CONTENT = "blareadownload/";
    //文件下载
    public static final String WEB_FILE = WEB_SYSTEM + "downloadFile.file?fileUuid=";

    //TEXTVIEW带图
    public static final String TEXTVIEW_WEB_All = WEB_ROOT + "ueditor/ueditor/image";
    public static final String TEXTVIEW_WEB = "/blarea/ueditor/ueditor/image";

    //存储xml文件名
    public static final String USER_INFO = "user_info";
    /**
     * session id
     */
    public static final String SESSION_ID = "sessionid";
    //pictureUuid
    public static final String PICTURE_UUID = "pictureUuid";
    //userName
    public static final String USER_NAME = "userName";
    //idCard
    public static final String ID_CARD = "idCard";
    //patientId
    public static final String PATIENT_ID = "patientId";

    //性别
    public static final String SEX = "sex";
    //电话
    public static final String TEL = "tel";
    //医保卡号
    public static final String HEALTHID = "healthid";

    //自动账号登录
    public static final String ISLOGIN = "islogin";
    public static final String USERNAME_LOGIN = "username_login";
    public static final String USERPWD = "userpwd";
    public static final String USERDEVICE = "userdevice";
    public static final String USERAPPKEY = "userappkey";


    /*
     *-----------------------------------预约挂号登录信息-------------------------------------
     */
    public static final String ISREGISTRATIONLOGIN = "isRegistrationlogin";
    public static final String ACCESSTOKEN = "accessToken";
    public static final String MEMBENUM = "membeNum";
    public static final String MEMBENUMPROXY = "memberNumProxy";
    public static final String PHONE = "phone";

    public static final String SENDTN = "sendTn";

    /*
     *-----------------------------------金唐接口信息-------------------------------------
     */

    //金唐根WebService
    public static final String WEB_CONTENT = "http://115.231.213.154:9090/hsey/Esb/CsbBusService.asmx";
    public static final String WEB_PROPERTY = "Json";
    public static final String WEB_NAME_SPACE = "http://tempuri.org/";
    public static final String WEB_NAME_METHOD = "ProcessJson";


    //trans_no 交易号
    public static final String MHS_LOGIN = "kmhs_login"; //登录
    public static final String MHS_PATLIST = "kmhs_patlist"; //病人列表
    public static final String MHS_PATINFO = "kmhs_patinfo"; //单个病人信息
    public static final String MHS_AS_LIST = "kmhs_as_list"; //病人检验申请单列表
    public static final String MHS_AS_RPT = "kmhs_as_rpt"; //病人检验报告单
    public static final String MHS_EX_LIST = "kmhs_ex_list"; //病人检查申请单列表
    public static final String MHS_EX_RPT = "kmhs_ex_rpt"; //病人检查报告单
    public static final String MHS_PAT_FEE = "kmhs_pat_fee"; //病人费用清单查询
    public static final String MHS_ORDER_LIST = "kmhs_order_list"; //获取病人当日可执行医嘱
    public static final String MHS_ORDER_EXEC = "kmhs_order_exec"; //病人医嘱执行
    public static final String MHS_AS_COLLECT = "kmhs_as_collect"; //病人检验标本采集
    public static final String MHS_LOGIN_EXT = "kmhs_login_ext"; //登录_4.0,不需要密码
    public static final String MHS_ORDER_ALL = "kmhs_order_all"; //获取病人所有医嘱
    public static final String MHS_ENR_LIST = "kmhs_enr_list"; //获取体征 HIS5.0
    public static final String MHS_EMR_CHD = "kmhs_emr_chd"; //电子病历
    public static final String MHS_ENR_INFO = "kmhs_enr_info"; //获取血糖监测数据


    //金唐请求账号
    public static final String WEB_SERVICE_USER_ID = "mhs";
    //金唐请求密码
    public static final String WEB_SERVICE_PASSWORD = "mhs";

    //webservice timeout
    public static final int TIMEOUT = 10000;

    /**
     * 当前病人信息
     */
    //存储xml文件名
    public static final String CURRENT_PATIENT_INFO = "current_patient_info";
    //当前病人床号,姓名，预交总额，总费用,住院号
    public static final String CURRENT_PATIENT_VISITNO = "visit_no";
}
